﻿using System;
using System.Collections.Generic;
using Ether.Mapping;

namespace Ether.Ai
{
    public class Waypoint
    {
        //Fields
        public EtherPosition Position;

        //Constructs
        public Waypoint(EtherPosition position)
        {
            this.Position = position;
        }

        //Methods
        public static Waypoint operator +(Waypoint way1, Waypoint way2) {
            return new Waypoint(way1.Position + way2.Position);
        }
        public static Waypoint operator -(Waypoint way1, Waypoint way2)
        {
            return new Waypoint(way1.Position - way2.Position);
        }

        public static Waypoint operator +(Waypoint way)
        {
            return new Waypoint(+way.Position);
        }
        public static Waypoint operator -(Waypoint way)
        {
            return new Waypoint(-way.Position);
        }
    }
}
